package com.yuqiao.read.design.observer;

public class ForecastDisplay implements IObserver,DisplayElement {

    private ISubject subject;
    public void display() {
        System.out.println("天氣預報");
    }


    public void update(float temp, float humidity, float pressure) {

    }
    public ForecastDisplay(ISubject weatherData){
        this.subject = weatherData;
        subject.registerObserver(this);
    }

}
